package cc.facesign.admin.service.impl;

import cc.facesign.admin.bean.mq.SignMq;
import cc.facesign.admin.service.SignService;
import cc.facesign.admin.utils.MqUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class SignServiceImpl implements SignService {

    @Autowired
    private MqUtils mqUtils;

    @Override
    public void sign(String mid, String cardId, int state) {
        mqUtils.sendForSign(new SignMq(mid, cardId, state));
    }
}
